home *** CD-ROM | disk | FTP | other *** search
- ; This is the Install script for ARCO.
-
- (welcome "Welcome to the ArCo installer. This installer uses "
- "the Commodore Amiga Installer®. \n\n")
- ;(set @default-dest "SD0:") ;I use a virtual disk as default whilst debugging!
-
- ; install on hard disk
- (set dest2 (askdir (prompt "Select the location to install the ArCo directory")
- (default @default-dest)
- (help "Choose a destination partition or directory "
- "to contain the ArCo compiler. The install "
- "program will create a directory called 'ArCo' "
- "in the location you choose and copy the "
- "compiler files to it."
- )
- )
- )
- (set dest1 (tackon dest2 "ArCo"))
- (set @default-dest dest1)
- (message "\n\nCompiler will be installed in "
- dest1
- )
-
- (makedir dest2 (safe) (infos))
- (makedir dest1 (safe) (infos))
- (makedir ("%s/Functions" dest1) (safe) (infos))
- (makedir ("%s/Lib" dest1) (safe) (infos))
- (makedir ("%s/ObjectFiles" dest1) (safe) (infos))
- (makedir ("%s/Support" dest1) (safe) (infos))
-
- (copyfiles
- (prompt "Copying ARCO files.")
- (help @copyfiles-help)
- (source "ArCo:")
- (dest dest1)
- (pattern "ArCo#?")
- (files)
- (infos)
- (confirm)
- )
-
- (copyfiles
- (prompt "Copying Librarian")
- (help @copyfiles-help)
- (source "ArCo:")
- (dest dest1)
- (pattern "Librar#?")
- (files)
- (infos)
- (confirm)
- )
-
- (copyfiles
- (prompt "Copying Disassembler.")
- (help @copyfiles-help)
- (source "ArCo:")
- (dest dest1)
- (pattern "DISEx#?")
- (files)
- (infos)
- (confirm)
- )
-
- (set temp ("%s/Support" dest1))
- (copyfiles
- (prompt "Copying support files.")
- (help @copyfiles-help)
- (source "ArCo:Support")
- (dest temp)
- (all)
- (files)
- (infos)
- (confirm)
- )
-
- (set temp ("%s/Functions" dest1))
- (copyfiles
- (prompt "Copying Function files.")
- (help @copyfiles-help)
- (source "ArCo:Functions")
- (dest temp)
- (all)
- (files)
- (infos)
- (confirm)
- )
-
- (set temp1 ("%s/ARCO_Manual.guide" dest1))
- (delete temp1 (safe))
-
- (set temp1 ("%s/ARCO_Install" dest1))
- (delete temp1 (safe))
-
- (set temp1 ("%s/ARCO_Install.info" dest1))
- (delete temp1 (safe))
-
- (copyfiles
- (prompt "Copying Documentation.")
- (help @copyfiles-help)
- (source "ArCo:Read_Me.info")
- (dest dest1)
- (newname "ArCo_Manual.guide.info")
- (files)
- (confirm)
- )
-
- (copyfiles
- (prompt "Copying Documentation.")
- (help @copyfiles-help)
- (source "ArCo:ARCO_DOC")
- (dest dest1)
- (newname "ArCo_Manual.guide")
- (files)
- )
- (set temp1("%s/ArCo_Manual.guide" dest1))
- (tooltype
- (dest temp1)
- (setdefaulttool "SYS:Utilities/Amigaguide")
- (safe)
- )
-
- (set action
- (askbool
- (prompt "\n\nDo you wish to install the Examples?")
- (help "\nThis will install all example scripts\nEssential if you wish to run the demo!")
- )
- )
-
- (if(< @user_level 1)
- (set action 1)
- )
- (if ( > action 0 )
- (makedir ("%s/Examples" dest1) (safe) (infos))
- )
- (set temp ("%s/Examples" dest1))
- (if ( > action 0 )
- (copyfiles
- (prompt "Copying Examples...")
- (help @copyfiles-help)
- (source "ArCo:Examples")
- (dest temp)
- (all)
- (files)
- (infos)
- (confirm)
- )
- )
-
- (set action
- (askbool
- (prompt "\n\nDo you wish to install the Demo?")
- (help "\nThis provides a guided tour of ArCo\nplus a quick tutorial")
- )
- )
-
- (if(< @user_level 1)
- (set action 1)
- )
- (if ( > action 0 )
- (makedir ("%s/Demo" dest1) (safe) (infos))
- )
- (set temp ("%s/Demo" dest1))
- (if ( > action 0 )
- (copyfiles
- (prompt "Copying Demo...")
- (help @copyfiles-help)
- (source "ArCo:Demo")
- (dest temp)
- (all)
- (files)
- (infos)
- (confirm)
- )
- )
-
- (set action
- (askbool
- (prompt "\n\nDo you wish to install the\n`C' programmers stuff?")
- (help "\nOnly useful if you are going to include ArCo\ngenerated Object Files in your own programs.")
- )
- )
-
- (if(< @user_level 1)
- (set action 1)
- )
- (if ( > action 0 )
- (makedir ("%s/PROGRAMMERS" dest1) (safe) (infos))
- )
- (set temp ("%s/PROGRAMMERS" dest1))
- (if ( > action 0 )
- (copyfiles
- (prompt "Copying files...")
- (help @copyfiles-help)
- (source "ArCo:PROGRAMMERS")
- (dest temp)
- (all)
- (files)
- (infos)
- (confirm)
- )
- )
-
- (set action
- (askbool
- (prompt "\n\nDo you wish to install the Public Domain stuff?")
- (help "\nThis contains some useful libraries and other stuff,\nIts archived with Lha.")
- )
- )
-
- (if(< @user_level 1)
- (set action 1)
- )
- (if ( > action 0 )
- (makedir ("%s/Public_Domain" dest1) (safe) (infos))
- )
- (set temp ("%s/Public_Domain" dest1))
- (if ( > action 0 )
- (copyfiles
- (prompt "Copying Lha file...")
- (help @copyfiles-help)
- (source "ArCo:Public_Domain")
- (dest temp)
- (all)
- (files)
- (infos)
- (confirm)
- )
- )
-
- (if (NOT (exists "LIBS:Amigaguide.library"))
- (copylib
- (prompt "Copying/Updating AmigaGUIDE.Library")
- (help @copylib-help)
- (source "ARCO:LIBS/amigaguide.library")
- (dest "Libs:")
- (confirm)
- )
- )
-
- (if (NOT (exists "SYS:Utilities/Amigaguide"))
- (copyfiles
- (prompt "Copying AmigaGUIDE.")
- (help @copyfiles-help)
- (source "ARCO:AmigaGuide")
- (dest "SYS:Utilities")
- (pattern "AmigaGUIDE#?")
- (files)
- (infos)
- (confirm)
- )
- )
-
- (copylib
- (prompt "Copying/Updating Other Libraries")
- (help @copylib-help)
- (source "ARCO:LIBS/rexxapp.library")
- (dest "Libs:")
- (confirm)
- )
-
- (copylib
- (prompt "Copying/Updating Other Libraries")
- (help @copylib-help)
- (source "ARCO:LIBS/rexxarplib.library")
- (dest "Libs:")
- (confirm)
- )
-
- (copylib
- (prompt "Copying/Updating Other Libraries")
- (help @copylib-help)
- (source "ARCO:LIBS/rexxmathlib.library")
- (dest "Libs:")
- (confirm)
- )
-
- (copylib
- (prompt "Copying/Updating Other Libraries")
- (help @copylib-help)
- (source "ARCO:LIBS/rx_intui.library")
- (dest "Libs:")
- (confirm)
- )
-
- (copylib
- (prompt "Copying/Updating Other Libraries")
- (help @copylib-help)
- (source "ARCO:LIBS/screenshare.library")
- (dest "Libs:")
- (confirm)
- )
-
-
- (set temp( "assign ArCo: %s\n" dest1))
- (set error 0)
- (set error
- (trap 4
- (startup "ARCO"
- (prompt "Adding ArCo assignment to \"S:user-startup\".")
- (help @startup-help)
- (command (temp))
- )
- )
- )
-
- (if (> error 0)
- (if (or (= @ioerr 222) (or (= @ioerr 223) (= @ioerr 224)))
- (message "Startup file is write protected. Use protect " "to write enable the file, and select Proceed" )
- ( ;else
- (message "Non-Standard startup sequence detected. You must add " "the following line by hand.\n\n" " assign ARCO: " dest1 "\n")
- (set error 0)
- )
- )
- )
-
- (makeassign "ARCO" dest1 )
- (set temp
- (askstring
- (prompt "\nPlease enter your name\nDo NOT use any punctuation marks!")
- (help "\nThis string will be written into your AUTHOR\ntooltype found within the ArCo icon.")
- )
- )
- (set temp1("%s/ArCo" dest1))
- (tooltype
- (dest temp1)
- (settooltype "AUTHOR" temp)
- )
-
- (set temp("run sys:utilities/amigaguide %s/ARCO_Manual.guide" dest1))
- (run (temp))
-
-
- (set end_text "\n\nAll installed,\n\nHave fun!")
- (exit end_text)
-
-